package com.interview.checkinfo.service;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import com.interview.checkinfo.entity.CheckInfo;
import com.interview.checkinfo.entity.CheckInfo_;
import com.interview.checkinfo.query.CheckInfoConditionQuery;

import com.interview.checkinfo.repository.CheckInfoRepository;
import com.interview.employeeInfo.entity.EmployeeInfo;

@Service
public class CheckInfoService {
	@Resource
	private CheckInfoRepository checkInfoRepository;

	public List<CheckInfo> dynamicQueryfindByEnployeeInfo(
			EmployeeInfo employeeInfo) {
		return checkInfoRepository.dynamicQueryfindByEnployeeInfo(employeeInfo);
	}

	public CheckInfo findOne(String id) {
		return checkInfoRepository.findOne(id);
	}

	public void save(CheckInfo checkInfo) {
		checkInfoRepository.save(checkInfo);
	}

	public void delet(String id) {
		checkInfoRepository.delet(id);
	}

	public CheckInfo update(CheckInfo checkInfo) {
		return checkInfoRepository.update(checkInfo);
	}

	public com.interview.checkinfo.query.Page dynamicQuery(
			CheckInfoConditionQuery checkInfoConditionQuery) {
		return checkInfoRepository.dynamicQuery(checkInfoConditionQuery);
	}

	

}
